<template>
	<view class="content">
			<view class="uni-margin-wrap">
				<swiper class="swiper" circular  indicator-dots autoplay :interval="2000" :duration="500">
					<swiper-item>
						<view class="swiper-item uni-bg-red">A</view>
					</swiper-item>
					<swiper-item>
						<view class="swiper-item uni-bg-green">B</view>
					</swiper-item>
					<swiper-item>
						<view class="swiper-item uni-bg-blue">C</view>
					</swiper-item>
				</swiper>
			</view>

	
	
		
		
		<view class="uni-padding-wrap uni-common-mt">
					<button type="primary">页面主操作 Normal</button>
					<button type="primary" loading="true">页面主操作 Loading</button>
					<button type="primary" disabled="true">页面主操作 Disabled</button>
					<button type="default">页面次要操作 Normal</button>
					<button type="default" disabled="true">页面次要操作 Disabled</button>
					<button type="warn">警告类操作 Normal</button>
					<button type="warn" disabled="true">警告类操作 Disabled</button>
					<view class="button-sp-area">
						<button type="primary" plain="true">按钮</button>
						<button type="primary" disabled="true" plain="true">不可点击的按钮</button>
						<button type="default" plain="true">按钮</button>
						<button type="default" disabled="true" plain="true">按钮</button>
						<button class="mini-btn" type="primary" size="mini">按钮</button>
						<button class="mini-btn" type="default" size="mini">按钮</button>
						<button class="mini-btn" type="warn" size="mini">按钮</button>
					</view>
				</view>
				
				
					<view class="">
							switch:{{switchFlag}}
						
						
						<switch checked  @change="changeSwitch"/>是否节食
						
						
					</view>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				switchFlag:true
				
			}
		},
		methods:{
			changeSwitch(e){
				console.log("e")
				console.log(e)
				console.log("开关的值:",e.detail.value);
				this.switchFlag =  e.detail.value
			}
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	
	.arrayContainer .title{
		color: orange;
	}
	
	
	.uni-margin-wrap {
			width: 690rpx;
			width: 100%;
		}
		.swiper {
			height: 300rpx;
		}
		.swiper-item {
			display: block;
			height: 300rpx;
			line-height: 300rpx;
			text-align: center;
		}
		.swiper-list {
			margin-top: 40rpx;
			margin-bottom: 0;
		}
		.uni-common-mt {
			margin-top: 60rpx;
			position: relative;
		}
		.info {
			position: absolute;
			right: 20rpx;
		}
		.uni-padding-wrap {
			width: 550rpx;
			padding: 0 100rpx;
		}
	
	
	.uni-bg-red{
		background-color: red;
	}
	
	.uni-bg-green{
		background-color: green;
	}
	
	.uni-bg-blue{
		background-color: blue;
	}
	
	
</style>
